<script setup lang="ts">
import useUserStore from "@/store/modules/user.ts";
import {getTime} from "@/utils/time.ts";

const userStore=useUserStore()

</script>

<template>
  <el-card >
    <div class="box">
      <div class="img"><el-image :src="userStore.avatar" style="width: 100px;height: 100px;"></el-image></div>
      <div class="user">
        <div class="top">{{userStore.username}}{{getTime()}}好呀</div>
        <p class="tit">硅谷甄选运营平台</p>
      </div>
    </div>
  </el-card>
  <div class="bottom">
    <SvgIcon name="welcome" width="500px" height="500px"></SvgIcon>
  </div>
</template>

<style scoped lang="scss">
.box{
  display: flex;
  align-items: center;
  .img{
    border-radius: 50px 50px;
    width: 100px;
    height: 100px;
    background: #8c939d;
    overflow: hidden;
  }
  .user{
    margin-left: 20px;
    .top{
      font-size: 30px;
      font-weight: bolder;
      margin-bottom: 10px;
    }
    .tit{
      text-align: center;
    }
  }
}
.bottom{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 650px;
}
</style>